package com.wsk.service.Impl;

import com.wsk.dao.UserInformationMapper;
import com.wsk.dao.UserPasswordMapper;
import com.wsk.pojo.UserInformation;
import com.wsk.pojo.UserPassword;
import com.wsk.service.ZhuCeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("zhuCeService")
public class ZhuCeServiceImpl implements ZhuCeService {
    @Resource
    UserInformationMapper userInformationMapper;
    @Resource
    UserPasswordMapper userPasswordMapper;


    @Override
    public void insert(UserInformation userInformation) {
        userInformationMapper.insert(userInformation);
    }

    @Override
    public void insert1(UserPassword userPassword) {

        userPasswordMapper.insert(userPassword);
    }

    @Override
    public UserInformation getUserByUserName(String username) {
        return userInformationMapper.selectByUsername(username);
    }
}
